home *** CD-ROM | disk | FTP | other *** search
- Program Sample;
-
- Uses
- Calc,
- FastWr,
- Crt,
- Meta;
-
- Var Ch : Char;
- Begin
- Clrscr;
- BoxTint := 15; (* Set the color of the window border. *)
- ValueTint := 15; (* Set the Calculator result color. *)
- KillSnow := False; (* Does Not wait for retrace when FALSE. *)
- EnhncdKeyboard := False; (* Assumes the keyboard is 84 key; numlock set on. *)
-
- FastWrite('File Create Report Editor Quit',1,1,15);
- FastWrite('Calculator',1,11,112);
- FastWrite('Calculation Result:',16,1,7);
- Repeat
- Ch := ReadKey;
-
- If Ch in [#13,'c','C'] then
- Begin
- Calculator;
- FastWrite(' ',16,21,0);
- If PasteExit = True Then (* Lets you know that the exit key was F10
- rather than Esc., So a paste is required. *)
- FastWrite(PasteValue,16,21,15);
-
- (* If PasteExit is true then
- the result of a calculation
- can be inserted into an
- application using the value
- assigned to PasteValue. *)
- end;
-
- Until Ch in ['q','Q'];
- Clrscr;
- end.